package com.zxcl.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ConfigurationProperties(prefix = "wx.official")
@RefreshScope
public class WxOfficialProperties {

    @Value("wxc1263fcd7d9dd0d4")
    private String appId ;

    @Value("378bef8c920f397c4291deb92e24a81a")
    private String appSecret;

    @Value("https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=%s&secret=%s")
    private String tokenUrl;

    @Value("https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=%s")
    private String msgUrl;

}
